/*
 * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
 * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
 */
package ZooManagement;

/**
 * Logistics Class - Manages transportation details for animal movements
 * @author ashongtical
 */
public class Logistics {
    private Item vehicle;
    private Item fuel;
    private String[] caretakers;

    // Constructor
    public Logistics(Item vehicle, Item fuel, String[] caretakers) {
        this.vehicle = vehicle;
        this.fuel = fuel;
        this.caretakers = caretakers;
    }

    // Accessor and mutator methods
    public Item getVehicle() {
        return vehicle;
    }

    public void setVehicle(Item vehicle) {
        this.vehicle = vehicle;
    }

    public Item getFuel() {
        return fuel;
    }

    public void setFuel(Item fuel) {
        this.fuel = fuel;
    }

    public String[] getCaretakers() {
        return caretakers;
    }

    public void setCaretakers(String[] caretakers) {
        this.caretakers = caretakers;
    }

    // Display method
    public void display() {
        System.out.println("Vehicle:");
        vehicle.display();
        System.out.println("Fuel:");
        fuel.display();
        System.out.println("Caretakers:");
        for (String caretaker : caretakers) {
            System.out.println(caretaker);
        }
    }


}
